import { createBrowserRouter,Navigate } from "react-router-dom";

import App from '../App'
import A1 from "../pages/A1";
import A2 from "../pages/A2";
import A3 from "../pages/A3";
import AA1 from "../pages/AA1";
import AA2 from "../pages/AA2";
const router = createBrowserRouter([
    {path:'/app',element:<App></App>,children:[
        {path:"/app/A1",element:<A1></A1>,children:[
            {path:'/app/A1/AA1',element:<AA1></AA1>},
            {path:'/app/A1/AA2',element:<AA2></AA2>},
        ]},
        {path:"/app/A2",element:<A2></A2>},
        {path:"/app/A3",element:<A3></A3>},
    ]},

    {path:'/',element:<Navigate to='/app'></Navigate>}
])




export default router

